package com.fengziyu.lib_recyclerview_fzy.goods

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.fengziyu.lib_recyclerview_fzy.entity.GoodsResponse
import com.fengziyu.lib_recyclerview_fzy.mvvm.BaseViewModel

class GoodsViewModel: BaseViewModel() {
    private val goodsRepository= GoodsRepository()
    var goodsResponse: LiveData<GoodsResponse> = MutableLiveData()

    fun getGoods(categoryId: Int , currentPage: Int , pageSize: Int){
        goodsResponse = goodsRepository.getGoods(categoryId, currentPage, pageSize)
    }
}